<template>
  <a-layout id="components-layout-demo-custom-trigger">
    <a-layout-sider class="sider">
      <div class="logo">
        <img src="../assets/firmLogo.png" />
      </div>
      <SiderMenu @func="changeMenu" />
    </a-layout-sider>
    <a-layout>
      <a-layout-header style="background: #fff; padding: 0">
        <Header />
      </a-layout-header>
      <a-layout-content

        :style="{ margin: '55px 16px', padding: '20px', background: '#fff', minHeight: '300px' ,}"
      >
        <router-view></router-view>
      </a-layout-content>
    </a-layout>
  </a-layout>
</template>
<script>
import Header from "./Header";
import SiderMenu from "./SiderMenu";
export default {
  components: {
    Header,
    SiderMenu
  },
  data() {
    return {};
  },
  methods: {
    changeMenu(data) {
      this.$router.push(`/${data}`);
    }
  }
};
</script>

<style>
.sider{
  background-color: rgb(0, 80, 128, 1);
}
#components-layout-demo-custom-trigger {
  height: 100%;
}
#components-layout-demo-custom-trigger .trigger {
  font-size: 18px;
  line-height: 64px;
  padding: 0 24px;
  cursor: pointer;
  transition: color 0.3s;
}

#components-layout-demo-custom-trigger .trigger:hover {
  color: #1890ff;
}
.logo {
  position: relative;
  left: 13px;
  width: 180px;
  top: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  margin-bottom: 60px;
}
.logo img {
  position: relative;
  left: 45px;
}
</style>